package gov.ccswj.modules.ccbusiness.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import gov.ccswj.modules.ccbusiness.dao.CTrademarkinfoDao;
import gov.ccswj.modules.ccbusiness.entity.CTrademarkinfoEntity;
import gov.ccswj.modules.ccbusiness.service.CTrademarkinfoService;



@Service("cTrademarkinfoService")
public class CTrademarkinfoServiceImpl implements CTrademarkinfoService {
	@Autowired
	private CTrademarkinfoDao cTrademarkinfoDao;
	
	@Override
	public CTrademarkinfoEntity queryObject(Integer id){
		return cTrademarkinfoDao.queryObject(id);
	}
	
	@Override
	public List<CTrademarkinfoEntity> queryList(Map<String, Object> map){
		return cTrademarkinfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return cTrademarkinfoDao.queryTotal(map);
	}
	
	@Override
	public void save(CTrademarkinfoEntity cTrademarkinfo){
		cTrademarkinfoDao.save(cTrademarkinfo);
	}
	
	@Override
	public void update(CTrademarkinfoEntity cTrademarkinfo){
		cTrademarkinfoDao.update(cTrademarkinfo);
	}
	
	@Override
	public void delete(Integer id){
		cTrademarkinfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		cTrademarkinfoDao.deleteBatch(ids);
	}
	@Override
	public void deleteByname(String entname) {
		cTrademarkinfoDao.delete(entname);
		
	}
}
